<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
	*{
	
		padding:0px;
		margin: 0px;
	}
	div{
		width:800px;
		margin:auto;
	}
	h1{
		width:700px;
		text-align: center;
		font-size:20px;
	}
	table{
		width:700px;
		border: solid 1px gray;
	}
	td{
	width: 100px;
	text-align: center;
	font-size:15px;
	margin-top: 15px;
	border:solid 1px gray;
	}
	td:nth-of-type(4){
		width:120px;
	}
	tr:nth-of-type(odd) td{
		background-color: darkgray;		
	}
	
</style>
</head>
<body>
	<div>
		<h1>注册人员信息列表</h1>
		<table>
			<tr>  
				<td>编号</td>		  
				<td>名称</td>
				<td>邮箱</td>
				<td>电话</td>
				<td>密码</td>
				<td>工作</td>
				<td>工作地点</td>
				<td>性别</td>
				<td>身份证</td>
				<td>开票单位抬头</td>
				<td>开票单位税号</td>
				<td>是否需要住宿</td>
				<td>房型选择（单/双）</td>
				<td>是否合住</td>
				<td>入住时间</td>
				<td>离开时间</td>
				<td></td> 
			</tr>
			<c:forEach var="user" items="${registers}">
				<tr>
					<td>${user.id}</td> 
					<td>${user.name}</td>
					<td>${user.email}</td>
					<td>${user.tel}</td>
					<td>${user.password}</td>
					<td>${user.work}</td>
					<td>${user.workwhere }</td>
					<td>${user.gender}</td>
					<td>${user.idcard}</td>
					<td>${user.inc}</td>
					<td>${user.incnum}</td>
					<td>${user.sleep}</td>
					<td>${user.house}</td>
					<td>${user.share}</td>
					<td>${user.intime}</td>
					<td>${user.outtime}</td>
					<td><a href="/hos/RegisterController/delete?id=${user.id}">删除</a></td>
				</tr>
			</c:forEach>
		</table>
		<a href="/hos/add.jsp">继续注册</a>
		<a href="/hos/yiyuan.jsp">返回首页</a>
	</div>
</body>
</html>